#ifndef GAMESTATE_H
#define GAMESTATE_H
#include <SFML\Graphics.hpp>
#include <iostream>
#include "Player.h"
#include "Collision.h"
#include "Menu.h"
#include "Bullet.h"
#include "Zombie.h"
#include "Map.h"
#include "GameOver.h"
class GameState
{
	public:
		GameState();
		void StartGame(sf::RenderWindow& window);
		void createZombie(sf::Time& elap);
		void createBullet(float playerx, float playery, sf::Vector2i mousePos, sf::Vector2f playerPos);
		void BulletLogic(sf::RenderWindow &window);
		void BulletZombieCollision();
		void ZombieLogic(sf::RenderWindow &window, Player &plr, float k);
	private:
		sf::RectangleShape healthBar;
		sf::SoundBuffer pistolb;
		sf::Sound pistol;
		float lastX;
		sf::Texture zombieTexture;
		sf::Texture bulletTexture;
		sf::Texture crossHairTexture;
		sf::Sprite crossHairSprite;
		sf::Text healthText;
		sf::Text gameOverText;
		std::vector<Zombie> zombies;
		std::vector<Bullet> bullets;
		float bulletSpeed;
};
#endif